﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;

namespace AutoCommunication.Base
{
    [AttributeUsage(AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
    public class AddAttribute : Attribute
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; }
        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; }
        /// <inheritdoc cref="AddAttribute"/>
        public AddAttribute(string name, string desc = "")
        {
            Name = name;
            Description = desc;
        }
        public AddAttribute()
        {

        }
    }
    public class AddProperty
    {
        /// <summary>
        /// 属性名
        /// </summary>
        [Description("属性值")]
        public string Name { get; set; }
        /// <summary>
        /// 属性值
        /// </summary>
        [Description("属性值")]
        public string Value { get; set; }
    }
}
